package SmartFurniture.Factory.Huawei;

import SmartFurniture.AbstractFactory.AirConditioner;
import SmartFurniture.Interface.SmartDevice;


//具体产品类
public class HuaweiAirConditioner extends AirConditioner {
    public void init(){
        System.out.println("正在初始化华为空调...");
        System.out.println("正在加载华为协议...");
        System.out.println("初始化完成");
    }


    public SmartDevice clone() throws CloneNotSupportedException {
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }

    @Override
    public String getName() {
        return "华为空调";
    }

    @Override
    public String getInfo() {
        return "华为空调,采用华为协议,支持智能家居控制";
    }
}
